class A():
    def __init__(self):
        self._data = None

    @property
    def data(self, d):
        self._data = d

    @data.getter
    def data(self):
        return self._data

a = A()
a.data = 1
a.data
